package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.system.domain.SysRegion;
import com.ruoyi.system.mapper.SysRegionMapper;
import com.ruoyi.system.service.ISysRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 地区Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-22
 */
@Service
public class SysRegionServiceImpl implements ISysRegionService
{
    @Autowired
    private SysRegionMapper sysRegionMapper;

    /**
     * 查询地区
     * 
     * @return 地区
     */

    @Override
    public List<SysRegion> selectSysRegionList()
    {
        List<SysRegion> provinceList = sysRegionMapper.selectSysRegionList();
        return provinceList;
    }

    @Override
    public List<SysRegion> selectSysRegionByPid(Integer id) {
        return sysRegionMapper.selectSysRegionByPid(id);
    }


}
